package com.dly.blog.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 
 * @TableName blog_user_role
 */
@TableName(value ="blog_user_role")
@Data
@EqualsAndHashCode(callSuper = false)
public class UserRole implements Serializable {

    @TableId
    private String id;

    /**
     * 用户
     */
    private String userId;

    /**
     * 角色
     */
    private String roleId;

    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}